﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class UIHub
{
	static UIHub ms_this;
	public static UIHub Instance
	{
		get
		{
			if(ms_this == null)
				ms_this = new UIHub();

			return ms_this;
		}
	}

	public static float ScreenW;
	public static float ScreenH;
	List<WindowBase> m_list_windows;

	UIHub()
	{
		m_list_windows = new List<WindowBase>();
	}

	public void Initialize ()
	{

	}

	public void Register (WindowBase windowBase)
	{
		m_list_windows.Add(windowBase);
	}

	public void UnRegister (WindowBase windowBase)
	{
		m_list_windows.Remove(windowBase);
	}
}
